trigger InstrumentScrappingTrigger on InstrumentScrapping__c(before insert,before update,after update  ) {


	if((Trigger.isInsert||Trigger.isUpdate)  && Trigger.isBefore){
		//带入仪器的成本价
		InstrumentScrappingHandler.bringCost(Trigger.new);
		
	}
///回写报废 锁定仪器
    if(Trigger.isAfter && Trigger.isUpdate)InstrumentScrappingHandler.backToEquipemt(Trigger.new,Trigger.oldMap);
}